import request from '@/utils/request'

export const loginService = data => {
  return request({
    url: '/admin/login',
    method: 'POST',
    data
  })
} 
 
  //业务员列表
export const getyewu_list = data => {
  return request({
    url: '/admin/yewu_list',
    method: 'POST',
    data
  })
} 
//获取数据看板
export const getindex = data => {
  return request({
    url: '/admin/index',
    method: 'POST',
    data
  })
} 


export const getrenxiao_list = data => {
  return request({
    url: '/admin/renxiao_list',
    method: 'POST',
    data
  })
} 


export const getgoods = data => {
  return request({
    url: '/admin/goods',
    method: 'POST',
    data
  })
} 


export const getgoodsgoods_view = data => {
  return request({
    url: '/admin/goods_view',
    method: 'POST',
    data
  })
} 

export const getgoods_list= data => {
  return request({
    url: '/admin/goods_list',
    method: 'POST',
    data
  })
} 
export const getxiaoshou_list = data => {
  return request({
    url: '/admin/xiaoshou_list',
    method: 'POST',
    data
  })
} 
export const getindex_goods = data => {
  return request({
    url: '/admin/index_goods',
    method: 'POST',
    data
  })
} 

export const renxiao_export = data => {
  return request({
    url: '/admin/renxiao_export',
    method: 'POST',
    data
  })
} 